#{extends 'Secure/layout.html' /}

#{set title:'Mon Profil' /}

<div id="profil">
    <div id="menu_right">
        <a href="@{Stages.listStages}">Page d'accueil</a>
    </div>

    <h2 class="post-title">
        Mon profil
    </h2>

    #{form @monProfilSave()}

    <p> 
        #{field 'Nom'}
        <label id="nom"> <b> Nom : </b> </label>
        <input type="text" name="nom" id="nom" value="${agent?.nom}" />
        #{/field}
    </p>
    <p> 
        #{field 'Prenom'}
        <label id="prenom"> <b> Prénom  : </b> </label>
        <input type="text" name="prenom" id="prenom" value="${agent?.prenom}" />
        #{/field}
    </p>
    <p> 
        #{field 'DateNais'}
        <label id="dateNais"> <b> Date de naissance : </b> </label>
        <input type="text" name="dateNais" id="dateNais" value="${agent?.dateNais.format('dd/MM/yyyy', 'fr')}" />
        #{/field}
    </p> 
    <p> 
        #{field 'Email'}
        <label id="email"> <b> Email : </b> </label>
        <input type="text" name="email" id="email" value="${agent?.email}" readonly="readonly"/>
        #{/field}
    </p>
    <p> 
        #{field 'Password'}
        <label id="password"> <b> Mot de passe : </b> </label>
        <input type="password" name="password" id="password" value="${agent?.password}" /> 
        #{/field}
    </p>
    <p> 
        #{field 'CisService'}
        <label id="cisService"> <b> CIS Service : </b> </label>
        <input type="text" name="cisService" id="cisService" value="${agent?.cisService}" readonly="true"/> 
        #{/field}
    </p>
    <p> 
        #{field 'For'}
        <label id="for"> <b> FOR : </b> </label>
        <input type="text" name="for" id="for" value="${agent?.niv}" readonly="true"/>
        #{/field}
    </p>
    <p> 
        #{field 'Grade'}
        <label id="grade"> <b> Grade : </b> </label>
        <input type="text" name="grade" id="grade" value="${agent?.grade}" readonly="true"/>
        #{/field}
    </p>
    <p> 
        #{field 'Statut'}
        <label id="statut"> <b> Statut : </b> </label>
        <input type="text" name="statut" id="statut" value="${agent?.statut}" readonly="true" />
        #{/field}
    </p>
    <p> 
        #{field 'StructureCoord'}
        <label id="structureCoord"> <b> Structure Coordinatrice : </b> </label>
        <input type="text" name="structureCoord" id="structureCoord" value="${agent?.structureCoord}" readonly="true"/> 
        #{/field}
    </p>
    <p style="margin-top:30px">    
        <center><input type="submit" value="Modifier" /></center>
    </p>
    #{/form}
</div>